package com.kun.alldb.support.plugin;

import com.google.auto.service.AutoService;
import com.kun.alldb.support.DBManager;
import com.kun.alldb.base.DatasourceBase;
import com.kun.alldb.support.MetaManager;
import com.kun.alldb.support.Plugin;
import com.kun.alldb.support.dbmanager.EsDBManager;

/**
 * @author kun.li
 */
@AutoService(Plugin.class)
public class EsPlugin implements Plugin {
    @Override
    public boolean supportType(String dsType) {
        return "es".equals(dsType);
    }

    @Override
    public DBManager createDBManager(DatasourceBase datasourceBase) {
        return new EsDBManager(datasourceBase);
    }

    @Override
    public MetaManager createMetaManager(DatasourceBase datasourceBase) {
        return null;
    }
}
